﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

//comment comment comment comment comment
namespace ConsoleApplication1
{
	//jkdahsjkdhaskj
    class Program
    {
		//Hi there
        static void Main(string[] args)
        {
            StreamReader reader = new StreamReader("text.txt");
            StreamWriter writer = new StreamWriter("output.txt");

            using (reader)
            {
                using (writer)
                {
                    string line = " ";
                    int counter = 1;
                    while (line != null)
                    { 						// towa e komentar
                        line = reader.ReadLine();
                        if (counter % 2 == 0)
                        {
                            writer.WriteLine(line);
                        }
                        counter++;
                    }
                    
                }
            }
            reader = new StreamReader("output.txt");
            writer = new StreamWriter("text.txt");
			//nenujen komentar
            using (reader)
            {
                using (writer)
                {
                    string text = reader.ReadToEnd();
                    writer.WriteLine(text);
                }
            }
        }
    }
}
